﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Manager.Model.Admin
{
    /// <summary>
    /// M_AdminRole:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class M_AdminRole
    {
        public M_AdminRole()
        { }
        #region Model
        private int _roleid;
        private string _rolename;
        private string _roledesc;
        private int _sort = 0;
        private bool _isvalid = true;
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="角色编号")]
        public int RoleID
        {
            set { _roleid = value; }
            get { return _roleid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="角色名称")]
        [Required]
        [StringLength(20)]
        public string RoleName
        {
            set { _rolename = value; }
            get { return _rolename; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="角色描述")]
        [StringLength(100)]
        public string RoleDesc
        {
            set { _roledesc = value; }
            get { return _roledesc; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "排序")]
        [Range(1,int.MaxValue)]
        public int Sort
        {
            set { _sort = value; }
            get { return _sort; }
        }
        /// <summary>
        /// 
        /// </summary>
        public bool IsValid
        {
            set { _isvalid = value; }
            get { return _isvalid; }
        }
        #endregion Model

    }
}

